home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: netcom.com!raffelm
- From: raffelm@netcom.com (Matt Raffel)
- Subject: Re: Example using vfprintf
- Message-ID: <raffelmDnK2ww.39r@netcom.com>
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- X-Newsreader: TIN [version 1.2 PL1]
- References: <raffelmDnK19L.IH6@netcom.com>
- Date: Thu, 29 Feb 1996 21:12:31 GMT
- Sender: raffelm@netcom8.netcom.com
-
-
- void lprintf(char *pszFormat, ...)
- {
- FILE *pstFile = NULL;
- va_list pstMarker;
-
-
-
- va_start(pstMarker);
- pstFile = fopen("llog.txt", "wt+");
-
- if (pstFile)
- {
- vfprintf(pstFile, pszFormat, pstMarker);
- fclose(pstFile);
- }
- va_end(pstMarker);
-
- }
-
- --
- raffelm@netcom.com
- Web Page ftp://ftp.netcom.com/ra/raffelm/isdhome.html
- ftp://ftp.netcom.com/ra/raffelm/homeofmatt.html
-